package com.hzc.springchan.bean.request;

import com.hzc.springchan.enums.impl.EmsBusiness;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.HashMap;

/**
 * 通用请求类
 * @author chen990627
 * @date 2022/09/12
 */
@Setter
@Getter
public class Request extends HashMap<String, Object> implements Serializable {

    /**
     * 用户id，取自token
     */
    private Integer userId;
    /**
     * 资源名称：用于寻找对应的业务处理类
     */
    private String resourceName;
    /**
     * 对应消息发送业务类型 ISmsSendParamStrategy
     */
    private String smsSendStrategy;
    /**
     * 对应邮件发送业务类型
     */
    private EmsBusiness emsBusiness;
}
